package cn.com.dealme.nutz.hibernate.transaction;

import org.nutz.aop.InterceptorChain;
import org.nutz.aop.interceptor.AbstractMethodInterceptor;
import org.nutz.ioc.Ioc;

public class TransInterceptor extends AbstractMethodInterceptor {
	
	private Ioc ioc;
	
	public TransInterceptor() {
	}

	@Override
	public void filter(InterceptorChain chain) throws Throwable {
		TransactionInterceptor interceptor = ioc.get(TransactionInterceptor.class);
		interceptor.filter(chain);
	}

	
	
	public Ioc getIoc() {
		return ioc;
	}

	public void setIoc(Ioc ioc) {
		this.ioc = ioc;
	}
	
	
}
